package com.FSS.ui;

import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.Toolkit;

import javax.swing.JDialog;
import javax.swing.JScrollPane;

public class FileDialog extends JDialog {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8958680570293061544L;
	ShowFilesTable sft;
	public FileDialog(Frame frame, ShowFilesTable sft) {
		super(frame, true);
		this.sft = sft;
		setSize(500,250);
		this.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width/2-this.getWidth()/2,Toolkit.getDefaultToolkit().getScreenSize().height/2-this.getHeight());
		setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
		this.setLayout(new BorderLayout());
		this.add(new JScrollPane(sft), BorderLayout.CENTER);
		
	}
}
